/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.find.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 考点解析Entity
 * @author 罗洪州
 * @version 2018-02-08
 */
public class CourseAnalysis extends DataEntity<CourseAnalysis> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 姓名
	private String url;		// 调整链接
	private String intro;		// 介绍
	private String isurl;		// isurl
	private String img;		// 图片
	private String content;		// content
	private Date startTime;		// 开始时间
	private Date endTime;		// 结束时间
	private String top;		// 置顶
	
	public CourseAnalysis() {
		super();
	}

	public CourseAnalysis(String id){
		super(id);
	}

	@Length(min=0, max=45, message="姓名长度必须介于 0 和 45 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=45, message="调整链接长度必须介于 0 和 45 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=0, max=200, message="介绍长度必须介于 0 和 200 之间")
	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}
	
	@Length(min=1, max=4, message="isurl长度必须介于 1 和 4 之间")
	public String getIsurl() {
		return isurl;
	}

	public void setIsurl(String isurl) {
		this.isurl = isurl;
	}
	
	@Length(min=0, max=200, message="图片长度必须介于 0 和 200 之间")
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=1, message="置顶长度必须介于 0 和 1 之间")
	public String getTop() {
		return top;
	}

	public void setTop(String top) {
		this.top = top;
	}
	
}